package com.cxj.cxj_test_cloud.common.network.response;

import com.google.gson.annotations.SerializedName;

public class ResponseData<T>{
    @SerializedName("ret")
    private boolean ret;//false=失败， true=成功
    @SerializedName("data")
    private T data;
    @SerializedName("code")
    private int code;//ret=true时，返回 0; ret=false,返回6位数错误码
    @SerializedName("msg")
    private String msg;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isRet() {
        return ret;
    }

    public void setRet(boolean ret) {
        this.ret = ret;
    }

    @Override
    public String toString() {
        return "ResponseData{" +
                "ret=" + ret +
                ", data=" + data +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
